package com.example.yrdev.ordering_system.Menu_Setting;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import com.example.yrdev.ordering_system.R;
import com.example.yrdev.ordering_system.Utils.GlobalFunction;

import butterknife.ButterKnife;

/**
 * Created by yrdev on 9/9/16.
 */
public class SettingOperatorDialog extends Dialog {
    Integer settingType;

   public SettingOperatorDialog(Context context,Integer settingType,String title){
        super(context);
       this.settingType=settingType;
       setTitle(title);
       GlobalFunction.ToastAlert(context,String.valueOf(settingType));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
      setView();
        ButterKnife.inject(this);
    }
    public  void setView(){
    switch (settingType){
        case 0:
            setContentView(R.layout.setting_operator_layout_1);
            break;
        case 1:
            setContentView(R.layout.setting_operator_layout_2);
            break;

        case 2:
            setContentView(R.layout.setting_operator_layout_3);
            break;
    }

    }
}
